package com.sap.feign;

import com.sap.domain.User;
import com.sap.sentinel.UserFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author luoh6
 */
@FeignClient(value = "test1-service",fallback = UserFeignFallback.class)
public interface UserFeign {

    @GetMapping("/user/get")
    User getUserById(@RequestParam("id") Long id);


}
